package com.wwl.cms.repository;

import com.wwl.cms.entity.SysUserTokenEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/9/28 16:51
 * @description:
 */
@Repository
public interface SysUserTokenRepository extends JpaRepository<SysUserTokenEntity,Long> {

    SysUserTokenEntity findByUserId(Long userId);

    SysUserTokenEntity findByToken(String token);

}
